<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>GetFilePart</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">GetFilePart()</font></b></p>
<p><b>Syntax</b></p><blockquote>

Filename$ = <font color="#006666"><b>GetFilePart</b></font>(FullPathName$ [, Mode])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Retrieves the file part of a full path. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>FullPathName$</i></td>
<td width="90%"> 
 
The full path to get the filename from. 

 

</td></tr>
<tr><td><i>Mode (optional)</i></td>
<td> 
 
It can be one of the following values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_FileSystem_NoExtension</font>: Get the filename without its extension (if any).
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>



Returns the file name. For example, if the full path is 
"C:\PureBasic\PB.exe", the result will be "PB.exe". 

 

</blockquote><p><b>Remarks</b></p><blockquote>



To retrieve the extension or the path part from a full path, look at the 
<a href="getextensionpart.html">GetExtensionPart()</a> and <a href="getpathpart.html">GetPathPart()</a> functions. 

 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="getextensionpart.html">GetExtensionPart()</a>, <a href="getpathpart.html">GetPathPart()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=getfiledate.html>GetFileDate()</a> - <a href=index.html>FileSystem Index</a> - <a href=gethomedirectory.html>GetHomeDirectory()</a> -&gt;



</body></html>